#pragma once
#include "ffdef.h"

extern void ff_init_lib();

//av_find_input_format
extern VideoState *ff_stream_open(const char *filename, VideoOptions *options);
extern void ff_stream_close(VideoState* is);

extern void ff_toggle_pause(VideoState *is);
extern bool ff_is_pause(VideoState *is);

extern void ff_toggle_mute(VideoState *is);
extern bool ff_is_mute(VideoState *is);

extern void ff_video_display(SDL_Renderer* renderer, VideoState *is);
extern void ff_video_refresh(SDL_Renderer* renderer, VideoState *is, double *remaining_time);


